home *** CD-ROM | disk | FTP | other *** search
/ PC-SIG: World of Games / PC-SIG World of Games (CDRM1080710) (1993).iso / 3154 / INSTALL.BAT < prev    next >
DOS Batch File  |  1992-03-12  |  3KB  |  88 lines

  1. echo off
  2. cls
  3. if %1a == a: goto WHATDRIVE
  4. if %1b == b: goto WHATDRIVE
  5. if %1 == c: goto START
  6. if %1 == C: goto START
  7. if %1 == d: goto START
  8. if %1 == D: goto START
  9. if %1 == e: goto START
  10. if %1 == E: goto START
  11. if %1 == f: goto START
  12. if %1 == F: goto START 
  13. goto NOTDRIVE
  14. :START
  15. echo * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  16. echo *                                                                       *
  17. echo *            Word Search Puzzle Maker Hard Disk Installation            *
  18. echo *                                                                       *
  19. echo *   This will create a directory called %1\WORDSPM on your hard disk,   *
  20. echo *   and will install Word Search Puzzle Maker and its files in that     *
  21. echo *   directory.                                                          *
  22. echo *                                                                       *
  23. echo *   If you don't want Word Search Puzzle Maker installed at this time,  *
  24. echo *   press Ctrl + C.                                                     *
  25. echo *                                                                       *
  26. echo * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  27. echo 
  28. pause
  29. cls
  30. echo Making directory %1\WORDSPM . . .
  31. if exist %1\WORDSPM\*.* goto EXISTS
  32. md %1\WORDSPM
  33. :CHECK
  34. if exist WSPM.EXE goto CONTINUE
  35. echo 
  36. echo Place the disk containing Word Search Puzzle Maker and its files in 
  37. echo active drive.
  38. echo 
  39. pause
  40. goto CHECK
  41. :CONTINUE
  42. echo 
  43. echo Copying Word Search Puzzle Maker and its files . . .
  44. copy WSPM.EXE %1\WORDSPM
  45. copy GO.BAT %1\WORDSPM
  46. copy INSTALL.BAT %1\WORDSPM
  47. copy DIRECTRI.TXT %1\WORDSPM
  48. copy DOCUMENT.TXT %1\WORDSPM
  49. copy *.WHL %1\WORDSPM
  50. if not exist %1\WORDSPM\WSPM.EXE goto INSTALLERROR
  51. if not exist %1\WORDSPM\DIRECTRI.TXT goto INSTALLERROR
  52. if not exist %1\WORDSPM\INSTALL.BAT goto INSTALLERROR
  53. cd %1\WORDSPM
  54. echo 
  55. echo Word Search Puzzle Maker is installed on your hard disk.  To run it, 
  56. echo type WSPM.
  57. %1
  58. echo 
  59. goto DONE
  60. :WHATDRIVE
  61. cls
  62. echo Installation Error:  To install Word Search Puzzle Maker on your hard 
  63. echo disk, you must include the drive as part of the install command.  For 
  64. echo example, to install Word Search Puzzle Maker on drive C, type INSTALL C: 
  65. echo and press ENTER.
  66. goto ERRORQUIT
  67. :NOTDRIVE
  68. cls
  69. echo Installation Error: The hard drive letter can be a letter from C to F,
  70. echo For example, INSTALL C: will install Word Search Puzzle Maker on drive 
  71. echo C.  You must include a colon after the drive letter.
  72. goto ERRORQUIT
  73. :INSTALLERROR
  74. cls
  75. echo Installation Error: Do you have enough space on your hard disk?
  76. echo Did you give the proper hard drive letter?
  77. goto ERRORQUIT
  78. :EXISTS
  79. cls
  80. echo Installation Error: WORDSPM Directory already exists on this drive.
  81. echo Delete this directory and all files in it, then try installing again.
  82. goto ERRORQUIT
  83. :ERRORQUIT
  84. echo 
  85. echo Word Search Puzzle Maker was not installed correctly.
  86. echo 
  87. :DONE
  88.